package com.smartStatus.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartStatus.api.entity.SysDict;
import com.smartStatus.api.entity.SysDictDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName : SysDictDetailsMapper
 * @Author : lby
 * @Date: 2020/12/17 9:26
 * @Description :
 */
@Mapper
public interface SysDictDetailsMapper extends BaseMapper<SysDictDetails> {

    /**
     * 查询字典项明细
     */
    List<SysDictDetails> getDetails(SysDict sysDict);

    /**
     * 添加字典项
     */
    int saveDetails(SysDictDetails sysDictDetails);

    /**
     * 插入关系
     */
    Boolean insertRevolation(SysDictDetails sysDictDetails);

    /**
     * 编辑字典项
     */
    Boolean editDetails(SysDictDetails sysDictDetails);

    /**
     * 删除字典项
     */
    Boolean delDetails(SysDictDetails sysDictDetails);

    /**
     * 删除关系
     */
    Boolean delRevolation(SysDictDetails sysDictDetails);
}
